﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace RPGMapRevealer
{
    public partial class AnalysisProgressDialog : Form
    {
        public AnalysisProgressDialog()
        {
            InitializeComponent();
        }

        public AsyncAnalysisReport AsyncResult
        {
            get { return analysisProgressUserControl1.asyncresult; }
            set
            {
                analysisProgressUserControl1.asyncresult = value;
                if (value != null)
                { value.CompletedEvent += donenow; }
            }
        }

        private void donenow(Object sender, EventArgs e)
        {
            DialogResult = System.Windows.Forms.DialogResult.OK;
        }
    }
}
